import request from '@/utils/request'
const serviceName = 'Warehouse'
//  列表
export function querySuppliers(data) {
  return request({
    url: serviceName + '/Supplier/QuerySuppliers',
    method: 'post',
    data
  })
}
//  详情
export function getSupplier(data) {
  return request({
    url: serviceName + '/Supplier/GetSupplier',
    method: 'post',
    data
  })
}
//  新增 修改
export function saveSupplier(data) {
  return request({
    url: serviceName + '/Supplier/SaveSupplier',
    method: 'post',
    data
  })
}
//  删除
export function deleteSuppliers(data) {
  return request({
    url: serviceName + '/Supplier/DeleteSuppliers',
    method: 'post',
    data
  })
}

export default {
  querySuppliers,
  getSupplier,
  saveSupplier,
  deleteSuppliers
}
